﻿// <copyright file="VirtualRegistryEntryValue.cs" company="Sinclair Community College">
// Copyright 2010 Sinclair Community College
// </copyright>
// <originalAuthor>Patrick S. Seymour (patrick.seymour@gmail.com)</originalAuthor>

namespace SinclairCC.AppV
{
    using System;

    /// <summary>
    /// This class serves as a base class for the various types of registry
    /// entries contained in a CP file.
    /// </summary>
    public abstract class VirtualRegistryEntryValue
    {
        /// <summary>
        /// The raw registry data.
        /// </summary>
        private byte[] rawValue;

        /// <summary>
        /// Initializes a new instance of the VirtualRegistryEntryValue class.
        /// </summary>
        /// <param name="rawData">
        /// The raw data registry data contained in the CP file.
        /// </param>
        public VirtualRegistryEntryValue(byte[] rawData)
        {
            this.rawValue = rawData;
        }

        /// <summary>
        /// Gets the raw registry data from the CP file.
        /// </summary>
        protected byte[] RawValue
        {
            get { return this.rawValue; }
        }
    }
}
